/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dao.reponse;

import entities.questionnaire.Questionnaire;
import entities.reponse.AbstractReponse;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author aurelien.emery
 */
@Local
public interface DaoAbstractReponseLocal {

    void create(AbstractReponse abstractReponse);

    void edit(AbstractReponse abstractReponse);

    void remove(AbstractReponse abstractReponse);

    AbstractReponse find(Object id);

    List<AbstractReponse> findAll();

    long countAllByQuestionnaire(Questionnaire questionnaire);

    List<AbstractReponse> findRange(int[] range);

    int count();

    void detach(AbstractReponse reponse);

}
